/**
 * Apr 2, 2011
 * 9:00:37 PM
 * Timiz
 * kukujun@gmail.com
 *cn.lastjune.service.impltimiz-project-dpAccpetregionServiceImpl
 */
package cn.lastjune.service.impl;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.lastjune.dao.AcceptregionDao;
import cn.lastjune.pojo.Accpetregion;
import cn.lastjune.service.AccpetregionService;
import cn.lastjune.util.Page;

/**
 * @author Timiz
 *         kukujun@gmail.com
 */
@Service
@Transactional
public class AccpetregionServiceImpl implements AccpetregionService
{

    @Autowired
    AcceptregionDao dao;

    @Override
    public Page<Accpetregion> getAllAccpetregion(Page<Accpetregion> page)
    {
        return dao.getPageAll(page);
    }

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.AccpetregionService#getAccpetregionById(java.lang.String)
     */
    @Override
    public Accpetregion getAccpetregionById(BigDecimal id)
    {
        return dao.getByID(id);
    }

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.AccpetregionService#insertAccpetregion(cn.lastjune.pojo.Accpetregion)
     */
    @Override
    public void insertAccpetregion(Accpetregion entity)
    {
        dao.add(entity);
    }

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.AccpetregionService#deleteAccpetregion(java.lang.String)
     */
    @Override
    public void deleteAccpetregion(BigDecimal id)
    {
        dao.delete(id);
    }

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.AccpetregionService#updateAccpetregion(cn.lastjune.pojo.Accpetregion)
     */
    @Override
    public void updateAccpetregion(Accpetregion entity)
    {
        dao.update(entity);
    }

}
